import { NextResponse } from 'next/server'
import { v4 as uuidv4 } from 'uuid'

interface Todo {
  id: string
  content: string
  completed: boolean
}

export async function GET() {
  const todos: Todo[] = Array.from({ length: 10 }, () => ({
    id: uuidv4(),
    content: `Task ${uuidv4().substring(0, 8)}`, 
    completed: Math.random() > 0.5
  }))

  return NextResponse.json({
    data: todos
  })
}